.class public abstract Les/iz;
.super Ljava/lang/Object;
.source "PopupExtraMenu.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/iz$g;
    }
.end annotation


# instance fields
.field protected a:Landroid/content/Context;

.field protected b:Landroid/widget/LinearLayout;

.field private c:Landroid/view/WindowManager;

.field private d:Z

.field private e:Z

.field protected f:Landroid/view/WindowManager$LayoutParams;

.field protected g:Les/iz$g;

.field protected h:I

.field protected i:Z

.field protected j:I

.field private k:Landroid/os/Handler;

.field private l:Ljava/lang/Runnable;


# direct methods
.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, p2, v0}, Les/iz;-><init>(Landroid/content/Context;ZI)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;ZI)V
    .locals 1

    .line 2
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x5

    .line 3
    iput v0, p0, Les/iz;->h:I

    const/4 v0, 0x1

    .line 4
    iput-boolean v0, p0, Les/iz;->i:Z

    .line 5
    new-instance v0, Les/iz$a;

    invoke-direct {v0, p0}, Les/iz$a;-><init>(Les/iz;)V

    iput-object v0, p0, Les/iz;->l:Ljava/lang/Runnable;

    .line 6
    iput-object p1, p0, Les/iz;->a:Landroid/content/Context;

    .line 7
    iput-boolean p2, p0, Les/iz;->d:Z

    .line 8
    iput p3, p0, Les/iz;->j:I

    const/4 p2, 0x0

    .line 9
    iput-boolean p2, p0, Les/iz;->e:Z

    const-string p2, "window"

    .line 10
    invoke-virtual {p1, p2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/view/WindowManager;

    iput-object p1, p0, Les/iz;->c:Landroid/view/WindowManager;

    .line 11
    new-instance p1, Landroid/os/Handler;

    invoke-direct {p1}, Landroid/os/Handler;-><init>()V

    iput-object p1, p0, Les/iz;->k:Landroid/os/Handler;

    .line 12
    invoke-virtual {p0}, Les/iz;->c()V

    return-void
.end method

.method static synthetic a(Les/iz;Z)Z
    .locals 0

    .line 1
    iput-boolean p1, p0, Les/iz;->e:Z

    return p1
.end method

.method private e()V
    .locals 5

    .line 1
    :try_start_0
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 2
    iget-object v0, p0, Les/iz;->c:Landroid/view/WindowManager;

    iget-object v2, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    iget-object v3, p0, Les/iz;->f:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {v0, v2, v3}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 3
    iget-boolean v0, p0, Les/iz;->i:Z

    if-eqz v0, :cond_0

    .line 4
    iget-object v0, p0, Les/iz;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/utils/t;->e(Landroid/content/Context;)I

    move-result v0

    const/high16 v2, 0x41800000    # 16.0f

    invoke-static {v2}, Lcom/estrongs/android/pop/utils/t;->a(F)I

    move-result v2

    sub-int/2addr v0, v2

    int-to-float v0, v0

    const/high16 v2, 0x42200000    # 40.0f

    .line 5
    invoke-static {v2}, Lcom/estrongs/android/pop/utils/t;->a(F)I

    move-result v2

    :goto_0
    int-to-float v2, v2

    goto :goto_1

    .line 6
    :cond_0
    iget-object v0, p0, Les/iz;->a:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/utils/t;->e(Landroid/content/Context;)I

    move-result v0

    const/high16 v2, 0x41f00000    # 30.0f

    invoke-static {v2}, Lcom/estrongs/android/pop/utils/t;->a(F)I

    move-result v2

    sub-int/2addr v0, v2

    int-to-float v0, v0

    .line 7
    iget-object v2, p0, Les/iz;->a:Landroid/content/Context;

    invoke-static {v2}, Lcom/estrongs/android/pop/utils/t;->b(Landroid/content/Context;)I

    move-result v2

    const/high16 v3, 0x425c0000    # 55.0f

    invoke-static {v3}, Lcom/estrongs/android/pop/utils/t;->a(F)I

    move-result v3

    sub-int/2addr v2, v3

    goto :goto_0

    :goto_1
    const/4 v3, 0x2

    new-array v3, v3, [F

    const/4 v4, 0x0

    aput v4, v3, v1

    const/4 v1, 0x1

    const/high16 v4, 0x3f800000    # 1.0f

    aput v4, v3, v1

    .line 8
    invoke-static {v3}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;

    move-result-object v1

    const-wide/16 v3, 0x12c

    .line 9
    invoke-virtual {v1, v3, v4}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    move-result-object v3

    invoke-virtual {v3}, Landroid/animation/ValueAnimator;->start()V

    .line 10
    iget-object v3, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v3, v0}, Landroid/widget/LinearLayout;->setPivotX(F)V

    .line 11
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setPivotY(F)V

    .line 12
    new-instance v0, Les/ly;

    invoke-direct {v0, p0}, Les/ly;-><init>(Les/iz;)V

    invoke-virtual {v1, v0}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception v0

    .line 13
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 14
    :goto_2
    iget-object v0, p0, Les/iz;->g:Les/iz$g;

    instance-of v1, v0, Les/lz;

    if-eqz v1, :cond_1

    .line 15
    check-cast v0, Les/lz;

    invoke-virtual {v0}, Les/lz;->c()V

    .line 16
    :cond_1
    iget-object v0, p0, Les/iz;->k:Landroid/os/Handler;

    new-instance v1, Les/iz$f;

    invoke-direct {v1, p0}, Les/iz$f;-><init>(Les/iz;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    .line 18
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_0

    const/16 v1, 0x8

    .line 19
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 20
    :try_start_0
    iget-object v0, p0, Les/iz;->c:Landroid/view/WindowManager;

    iget-object v1, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    invoke-interface {v0, v1}, Landroid/view/WindowManager;->removeView(Landroid/view/View;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    const/4 v0, 0x0

    .line 21
    iput-boolean v0, p0, Les/iz;->e:Z

    .line 22
    invoke-virtual {p0}, Les/iz;->b()V

    :cond_0
    return-void
.end method

.method public synthetic a(Landroid/animation/ValueAnimator;)V
    .locals 2

    .line 13
    invoke-virtual {p1}, Landroid/animation/ValueAnimator;->getAnimatedValue()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Float;

    .line 14
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setAlpha(F)V

    .line 15
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setAlpha(F)V

    .line 16
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setScaleX(F)V

    .line 17
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F

    move-result p1

    invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->setScaleY(F)V

    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/v00;",
            ">;)V"
        }
    .end annotation

    .line 3
    invoke-virtual {p0}, Les/iz;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 4
    :cond_0
    iget-object v0, p0, Les/iz;->g:Les/iz$g;

    invoke-interface {v0, p1}, Les/iz$g;->a(Ljava/util/List;)V

    .line 5
    invoke-direct {p0}, Les/iz;->e()V

    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 2
    iput-boolean p1, p0, Les/iz;->i:Z

    return-void
.end method

.method protected a(Landroid/view/KeyEvent;)Z
    .locals 3

    .line 6
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/4 v1, 0x1

    const/4 v2, 0x4

    if-ne v0, v2, :cond_1

    .line 7
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result p1

    if-ne p1, v1, :cond_0

    .line 8
    iget-object p1, p0, Les/iz;->k:Landroid/os/Handler;

    iget-object v0, p0, Les/iz;->l:Ljava/lang/Runnable;

    invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_0
    return v1

    .line 9
    :cond_1
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/16 v2, 0x52

    if-ne v0, v2, :cond_2

    .line 10
    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result p1

    if-nez p1, :cond_2

    .line 11
    iget-boolean p1, p0, Les/iz;->e:Z

    if-eqz p1, :cond_2

    .line 12
    iget-object p1, p0, Les/iz;->k:Landroid/os/Handler;

    iget-object v0, p0, Les/iz;->l:Ljava/lang/Runnable;

    invoke-virtual {p1, v0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return v1

    :cond_2
    const/4 p1, 0x0

    return p1
.end method

.method public abstract b()V
.end method

.method protected c()V
    .locals 6

    .line 1
    new-instance v0, Les/iz$b;

    iget-object v1, p0, Les/iz;->a:Landroid/content/Context;

    invoke-direct {v0, p0, v1}, Les/iz$b;-><init>(Les/iz;Landroid/content/Context;)V

    iput-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    .line 2
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    .line 3
    iget-object v1, p0, Les/iz;->a:Landroid/content/Context;

    check-cast v1, Landroid/app/Activity;

    invoke-virtual {v1}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v1

    .line 4
    invoke-virtual {v1, v0}, Landroid/view/View;->getWindowVisibleDisplayFrame(Landroid/graphics/Rect;)V

    .line 5
    iget v0, v0, Landroid/graphics/Rect;->top:I

    .line 6
    new-instance v1, Landroid/view/WindowManager$LayoutParams;

    invoke-direct {v1}, Landroid/view/WindowManager$LayoutParams;-><init>()V

    iput-object v1, p0, Les/iz;->f:Landroid/view/WindowManager$LayoutParams;

    const/4 v2, -0x1

    .line 7
    iput v2, v1, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 8
    iget-object v2, p0, Les/iz;->a:Landroid/content/Context;

    invoke-static {v2}, Lcom/estrongs/android/pop/utils/t;->b(Landroid/content/Context;)I

    move-result v2

    sub-int/2addr v2, v0

    iget v3, p0, Les/iz;->j:I

    sub-int/2addr v2, v3

    iput v2, v1, Landroid/view/WindowManager$LayoutParams;->height:I

    .line 9
    iget-object v1, p0, Les/iz;->f:Landroid/view/WindowManager$LayoutParams;

    const/4 v2, -0x2

    iput v2, v1, Landroid/view/WindowManager$LayoutParams;->format:I

    .line 10
    iput v0, v1, Landroid/view/WindowManager$LayoutParams;->y:I

    .line 11
    iget-object v1, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    const/16 v3, 0x8

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 12
    iget-object v1, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    const/4 v3, 0x0

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 13
    iget-object v1, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    new-instance v3, Les/iz$c;

    invoke-direct {v3, p0}, Les/iz$c;-><init>(Les/iz;)V

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 14
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v2, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 15
    iget-boolean v2, p0, Les/iz;->d:Z

    if-eqz v2, :cond_1

    .line 16
    new-instance v2, Les/iz$d;

    iget-object v3, p0, Les/iz;->a:Landroid/content/Context;

    iget v4, p0, Les/iz;->h:I

    invoke-direct {v2, p0, v3, v4}, Les/iz$d;-><init>(Les/iz;Landroid/content/Context;I)V

    iput-object v2, p0, Les/iz;->g:Les/iz$g;

    .line 17
    iget-object v2, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    const/16 v3, 0x55

    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 18
    iget-object v2, p0, Les/iz;->a:Landroid/content/Context;

    instance-of v3, v2, Les/hz;

    if-eqz v3, :cond_0

    .line 19
    check-cast v2, Les/hz;

    .line 20
    invoke-interface {v2}, Les/hz;->r()Landroid/graphics/Rect;

    move-result-object v2

    if-eqz v2, :cond_0

    .line 21
    invoke-virtual {v2}, Landroid/graphics/Rect;->height()I

    move-result v3

    iget-object v4, p0, Les/iz;->a:Landroid/content/Context;

    invoke-virtual {v4}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f0700ea

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v4

    sub-int/2addr v3, v4

    iput v3, v1, Landroid/widget/LinearLayout$LayoutParams;->height:I

    .line 22
    iget v2, v2, Landroid/graphics/Rect;->top:I

    sub-int/2addr v2, v0

    iput v2, v1, Landroid/widget/LinearLayout$LayoutParams;->topMargin:I

    .line 23
    iget-object v0, p0, Les/iz;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v2, 0x7f0700ef

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    iput v0, v1, Landroid/widget/LinearLayout$LayoutParams;->bottomMargin:I

    .line 24
    iget-object v0, p0, Les/iz;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v2, 0x7f070105

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    iput v0, v1, Landroid/widget/LinearLayout$LayoutParams;->rightMargin:I

    .line 25
    :cond_0
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    iget-object v2, p0, Les/iz;->g:Les/iz$g;

    invoke-interface {v2}, Les/iz$g;->a()Landroid/view/View;

    move-result-object v2

    invoke-virtual {v0, v2, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    goto :goto_0

    .line 26
    :cond_1
    iget-object v0, p0, Les/iz;->f:Landroid/view/WindowManager$LayoutParams;

    iget v0, v0, Landroid/view/WindowManager$LayoutParams;->height:I

    iput v0, v1, Landroid/widget/LinearLayout$LayoutParams;->height:I

    .line 27
    new-instance v0, Les/iz$e;

    iget-object v2, p0, Les/iz;->a:Landroid/content/Context;

    iget v3, p0, Les/iz;->h:I

    invoke-direct {v0, p0, v2, v3}, Les/iz$e;-><init>(Les/iz;Landroid/content/Context;I)V

    iput-object v0, p0, Les/iz;->g:Les/iz$g;

    .line 28
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    const/16 v2, 0x11

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 29
    iget-object v0, p0, Les/iz;->b:Landroid/widget/LinearLayout;

    iget-object v2, p0, Les/iz;->g:Les/iz$g;

    invoke-interface {v2}, Les/iz$g;->a()Landroid/view/View;

    move-result-object v2

    invoke-virtual {v0, v2, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :goto_0
    return-void
.end method

.method public d()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/iz;->e:Z

    return v0
.end method
